Skip to content

Instantly share code, notes, and snippets.

@ap0llo
ap0llo / Export-VisioDrawing.ps1
Last active October 16, 2026 20:28
Powershell script that exports Visio drawings in the current directory to png
# Powershell script that exports visio drawings to png
# Based on a F# script with the same purpose which can be found at
# http://stackoverflow.com/questions/1145269/visio-to-image-command-line-conversion
$outputFormat = ".png"
$inputFilePattern = "*.vsdx"
# Load Visio Interop Assembly
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Visio") > $null
@DomeniLocke
DomeniLocke / readme.md
Created July 15, 2026 11:34
Best Instant Indexing Tools Compared for Cost, Speed and Performance

Best Instant Indexing Tools Compared by Speed, Price & Real Results (2026)

Choosing the best instant indexing tool is not only about speed. Many tools claim to get pages discovered quickly, but website owners need to compare them based on actual usefulness, pricing, workflow, reliability, and SEO value.

In 2026, instant indexing tools are widely used by bloggers, agencies, affiliate marketers, publishers, and eCommerce websites that want faster URL discovery.

Best Instant Indexing Tools You Should Go For

  1. Rocket Indexer – https://snipr.is/Cq8vwDP 👈🏻 Click Here
  2. 2minuteindex.com – 👈🏻 Click Here
@dmitmedv
dmitmedv / docker_wordpress.md
Last active October 16, 2026 20:22 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

С помощью этого файла и докера можно быстро установить WordPress на свой компьютер с помощью одной команды. Создайте файл "docker-compose.yaml" и вставьте код ниже. Сам файл запускается вот такой командой:

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@hearnadam
hearnadam / Derive.scala
Created March 29, 2025 03:15
Scala 3 Type Masking
object Derive:
import scala.quoted.*
inline def derive[Contents, Mask]: NotIn[Contents, Mask] =
${ deriveImpl[Contents, Mask] }
private def deriveImpl[Contents: Type, Mask: Type](using q: Quotes): Expr[NotIn[Contents, Mask]] = {
import quotes.reflect.*
if (inMask[Contents, Mask]) {
report.errorAndAbort(s"Type ${Type.show[Contents]} is in Mask: ${Type.show[Mask]}")
} else {
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {

Instructions for YouTube:

There is a small chance your account could be banned. DO NOT login with an important Google account (such as an account you use for Gmail)

If yt-dlp is asking you to log in, first try running --update-to nightly to see whether it fixes the issue!

Export cookies automatically (this works on MacOS and Linux, but it only works on Windows if you use Firefox):

  1. Log into YouTube in your browser
@PadowYT2
PadowYT2 / pterodactyl.md
Created October 16, 2026 15:54
Pterodactyl drama

Tip

TL;DR: Switch from Pterodactyl v2 by: staying on v1; switching to e.g. Calagopus.

I am a Pterodactyl user, using it since August 2021, and learning the basics of Linux, like simple commands, just because of selfhosting it. Since then, I have appeared on Vertisan - the creators of famously known Unix Theme (now dethroned by many).

Important

Why should I care about what you said in the gist?

You shouldn't. I'm a normal person, just like you. Do whatever you want, this is my stance.

@christophewang
christophewang / QuickSort.cpp
Last active October 16, 2026 19:57
Quick Sort in C++
#include <iostream>
void printArray(int *array, int n)
{
for (int i = 0; i < n; ++i)
std::cout << array[i] << std::endl;
}
void quickSort(int *array, int low, int high)
{
@jkdavew
jkdavew / find_it.sql
Last active October 16, 2026 19:49
Locate DB2 functions, procedures, tables, views by query term
-- Subject: Locate DB2 functions, procedures, tables, views by query term
-- Author: Dave Weissman
-- Platform: IBM i (tested on V7R5)
-- Date : June, 2024
--
stop;
CREATE OR REPLACE PROCEDURE find_it (p_query VARCHAR(2048), --terms to search for
p_libl VARCHAR(2048) DEFAULT 'SYSTOOLS,QSYS,QSYS2', --default library list
p_omit_table BOOLEAN DEFAULT false, --skip table lookup